//
//  YGHomePageViewModel.h
//  luGongPro
//
//  Created by 王庆学 on 2017/8/24.
//  Copyright © 2017年 王庆学. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YGContainerProtocol.h"
#import "YGNewsViewModelProtocol.h"

@class YGLiveRoomDataModel;
@interface YGHomePageViewModel : NSObject

@property (nonatomic, strong) NSMutableArray<YGContainerProtocol> *floorModels;

@property (nonatomic, strong) NSMutableArray *financeNews;

@property (nonatomic, strong) NSMutableArray *adLinks;

@property (nonatomic, strong) NSMutableArray *liveRooms;

@property (nonatomic, strong) NSMutableArray<YGNewsViewModelProtocol> *newsViewModels;

- (void)changeCalendarSelectorDate:(NSDate *)selectedDate;

- (void)changeNewsDataSourceWithDatas:(NSArray *)datas
                        isNeedToolBar:(BOOL)isNeedToolBar;

- (id<YGRenderProtocol>)rowModelAtIndexPath:(NSIndexPath *)indexPath;

- (void)clickOnIndexPath:(NSIndexPath *)indexPath;

+ (RACReplaySubject *)homeVideoOnLine;

@property (nonatomic, copy)NSArray *financeNewsList;

@property (nonatomic, copy)NSArray *homeADList;

@property (nonatomic, strong) YGLiveRoomDataModel *liveRoomModel;

- (void)loadFinanceNewsAndLiveRoomData;

- (void)realoadFinanceNewsModelData;

- (void)realoadHomeADModelData;

- (void)realoadLiveRoomData;

@end
